package cn.gson.boot.model.pojos;

import javax.persistence.*;
import java.util.Objects;

@Entity
@Table(name = "caring_type", schema = "boot", catalog = "")
public class CaringType {//关怀类型
    private int caringtypeId;//类型id
    private String type;//类型名称

    @Id
    @Column(name = "Caringtype_id", nullable = false)
    public int getCaringtypeId() {
        return caringtypeId;
    }

    public void setCaringtypeId(int caringtypeId) {
        this.caringtypeId = caringtypeId;
    }

    @Basic
    @Column(name = "type", nullable = true, length = 200)
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "CaringType{" +
                "caringtypeId=" + caringtypeId +
                ", type='" + type + '\'' +
                '}';
    }
}
